
package GUI;

import java.awt.*;

import javax.swing.*;

/**
 * @author aviat
 *
 */
public class NewCustomerDetails extends JPanel {
	
	private static final long serialVersionUID = 1L;
	private JButton btnBack;
	private JTextField lNametextField;

	private JLabel lblGLastName;
	private JLabel lblBFirstName;
	private JLabel lblBLastName;
	private JLabel lblBPhone;
	private JTextField bPhogeTextField;
	private JTextField bLnamecomboBox;
	

	private JLabel iconlabel;
	private JLabel lblGFirstName;
	private JLabel lblGroomPhone;
	private JLabel lblAddress;
	private JTextField gPonetextField;
	private JButton btnChange;
	private JTextField gFnameComboBox;
	private JTextField gLnameComboBox;
	private JTextField bFnameComboBox;
	
	private JTextField EmailtextField;
	private JScrollPane scrollPane;
	private JTextArea AddresstextArea;
	

	
	public NewCustomerDetails() {
		setBackground(new Color(255, 51, 0));
		setLayout(null);
		btnBack = new JButton("Back");
		btnBack.setIcon(new ImageIcon(NewCustomerDetails.class.getResource("/resources/back22.png")));
		lNametextField = new JTextField();
		lNametextField.setEditable(false);
		bPhogeTextField = new JTextField();
		bPhogeTextField.setFont(new Font("Tahoma", Font.BOLD, 12));
		gPonetextField = new JTextField();
		btnChange = new JButton("Update");
		EmailtextField = new JTextField();
		gFnameComboBox = new JTextField();
		bFnameComboBox = new JTextField();
		gLnameComboBox = new JTextField();
		bLnamecomboBox = new JTextField();
		AddresstextArea = new JTextArea();

		initialize();
	}

	private void initialize() {


		JLabel lblCustomerDetails = new JLabel("Update Customer Details");
		lblCustomerDetails.setForeground(new Color(0, 204, 255));
		lblCustomerDetails.setFont(new Font("Tahoma", Font.BOLD, 16));
		lblCustomerDetails.setBounds(10, 11, 211, 44);
		add(lblCustomerDetails);
		
		btnBack.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 12));
		btnBack.setBounds(10, 462, 101, 27);
		add(btnBack);


		
		JLabel labelEmail = new JLabel("Email");
		labelEmail.setForeground(Color.WHITE);
		labelEmail.setFont(new Font("Tahoma", Font.BOLD, 12));
		labelEmail.setBounds(361, 323, 101, 27);
		add(labelEmail);
		

		lblGLastName = new JLabel("Groom Last Name");
		lblGLastName.setForeground(Color.WHITE);
		lblGLastName.setFont(new Font("Tahoma", Font.BOLD, 12));
		lblGLastName.setBounds(10, 184, 111, 22);
		add(lblGLastName);
		
		lblBFirstName = new JLabel("Bride First Name");
		lblBFirstName.setForeground(Color.WHITE);
		lblBFirstName.setFont(new Font("Tahoma", Font.BOLD, 12));
		lblBFirstName.setBounds(10, 262, 111, 22);
		add(lblBFirstName);
		
		lblBLastName = new JLabel("Bride Last Name");
		lblBLastName.setForeground(Color.WHITE);
		lblBLastName.setFont(new Font("Tahoma", Font.BOLD, 12));
		lblBLastName.setBounds(10, 325, 101, 22);
		add(lblBLastName);
		
		lblBPhone = new JLabel("Bride Phone");
		lblBPhone.setForeground(Color.WHITE);
		lblBPhone.setFont(new Font("Tahoma", Font.BOLD, 12));
		lblBPhone.setBounds(361, 262, 82, 22);
		add(lblBPhone);
		
		
		bPhogeTextField.setColumns(10);
		bPhogeTextField.setBounds(499, 260, 135, 27);
		add(bPhogeTextField);

		ImageIcon LOGOImageIcon = new ImageIcon(getClass().getClassLoader().getResource("resources/camera-background3.png"));
		ImageIcon LOGO = new ImageIcon (LOGOImageIcon.getImage().getScaledInstance(-1, -1, java.awt.Image.SCALE_SMOOTH));
		
		lblGFirstName = new JLabel("Groom First Name");
		lblGFirstName.setFont(new Font("Tahoma", Font.BOLD, 12));
		lblGFirstName.setForeground(Color.WHITE);
		lblGFirstName.setBounds(10, 117, 127, 26);
		add(lblGFirstName);
		
		lblGroomPhone = new JLabel("Groom Phone");
		lblGroomPhone.setForeground(Color.WHITE);
		lblGroomPhone.setFont(new Font("Tahoma", Font.BOLD, 12));
		lblGroomPhone.setBounds(361, 206, 95, 17);
		add(lblGroomPhone);
		
		lblAddress = new JLabel("Address");
		lblAddress.setForeground(Color.WHITE);
		lblAddress.setFont(new Font("Tahoma", Font.BOLD, 12));
		lblAddress.setBounds(361, 120, 82, 21);
		add(lblAddress);
		
		
		gPonetextField.setFont(new Font("Tahoma", Font.BOLD, 12));
		gPonetextField.setBounds(499, 203, 135, 27);
		add(gPonetextField);
		gPonetextField.setColumns(10);
		
		
		btnChange.setIcon(new ImageIcon(NewCustomerDetails.class.getResource("/resources/change.png")));
		btnChange.setFont(new Font("Tahoma", Font.BOLD, 12));
		btnChange.setBounds(323, 429, 118, 27);
		add(btnChange);
		gFnameComboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
		gFnameComboBox.setBounds(161, 117, 135, 27);
		add(gFnameComboBox);
		
		
		gLnameComboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
		gLnameComboBox.setBounds(161, 184, 135, 27);
		add(gLnameComboBox);
		
		
		bLnamecomboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
		bLnamecomboBox.setBounds(161, 322, 135, 27);
		add(bLnamecomboBox);
		bFnameComboBox.setFont(new Font("Tahoma", Font.BOLD, 12));
		bFnameComboBox.setBounds(161, 262, 135, 27);
		add(bFnameComboBox);
		
		
		EmailtextField.setFont(new Font("Tahoma", Font.BOLD, 12));
		EmailtextField.setBounds(499, 325, 177, 27);
		add(EmailtextField);
		EmailtextField.setColumns(10);
		
		scrollPane = new JScrollPane();
		scrollPane.setBounds(499, 117, 135, 56);
		add(scrollPane);
		
		
		scrollPane.setViewportView(AddresstextArea);
		
		iconlabel = new JLabel("");
		iconlabel.setIcon(LOGO);
		iconlabel.setBounds(0, 0, 786, 500);
		add(iconlabel);
	}

	/**
	 * @return the btnChange
	 */
	public JButton getBtnChange() {
		return btnChange;
	}

	/**
	 * @return the lNametextField
	 */
	public JTextField getlNametextField() {
		return lNametextField;
	}

	/**
	 * @param lNametextField the lNametextField to set
	 */
	public void setlNametextField(JTextField lNametextField) {
		this.lNametextField = lNametextField;
	}

	/**
	 * @return the lblGLastName
	 */
	public JLabel getLblGLastName() {
		return lblGLastName;
	}

	/**
	 * @param lblGLastName the lblGLastName to set
	 */
	public void setLblGLastName(JLabel lblGLastName) {
		this.lblGLastName = lblGLastName;
	}

	/**
	 * @return the lblBFirstName
	 */
	public JLabel getLblBFirstName() {
		return lblBFirstName;
	}

	/**
	 * @param lblBFirstName the lblBFirstName to set
	 */
	public void setLblBFirstName(JLabel lblBFirstName) {
		this.lblBFirstName = lblBFirstName;
	}

	/**
	 * @return the lblBLastName
	 */
	public JLabel getLblBLastName() {
		return lblBLastName;
	}

	/**
	 * @param lblBLastName the lblBLastName to set
	 */
	public void setLblBLastName(JLabel lblBLastName) {
		this.lblBLastName = lblBLastName;
	}

	/**
	 * @return the lblBPhone
	 */
	public JLabel getLblBPhone() {
		return lblBPhone;
	}

	/**
	 * @param lblBPhone the lblBPhone to set
	 */
	public void setLblBPhone(JLabel lblBPhone) {
		this.lblBPhone = lblBPhone;
	}

	/**
	 * @return the bPhogeTextField
	 */
	public JTextField getbPhogeTextField() {
		return bPhogeTextField;
	}

	/**
	 * @param bPhogeTextField the bPhogeTextField to set
	 */
	public void setbPhogeTextField(JTextField bPhogeTextField) {
		this.bPhogeTextField = bPhogeTextField;
	}

	/**
	 * @return the bLnamecomboBox
	 */
	public JTextField getbLnamecomboBox() {
		return bLnamecomboBox;
	}

	/**
	 * @param bLnamecomboBox the bLnamecomboBox to set
	 */
	public void setbLnamecomboBox(JTextField bLnamecomboBox) {
		this.bLnamecomboBox = bLnamecomboBox;
	}

	/**
	 * @return the iconlabel
	 */
	public JLabel getIconlabel() {
		return iconlabel;
	}

	/**
	 * @param iconlabel the iconlabel to set
	 */
	public void setIconlabel(JLabel iconlabel) {
		this.iconlabel = iconlabel;
	}

	/**
	 * @return the lblGFirstName
	 */
	public JLabel getLblGFirstName() {
		return lblGFirstName;
	}

	/**
	 * @param lblGFirstName the lblGFirstName to set
	 */
	public void setLblGFirstName(JLabel lblGFirstName) {
		this.lblGFirstName = lblGFirstName;
	}

	/**
	 * @return the lblGroomPhone
	 */
	public JLabel getLblGroomPhone() {
		return lblGroomPhone;
	}

	/**
	 * @param lblGroomPhone the lblGroomPhone to set
	 */
	public void setLblGroomPhone(JLabel lblGroomPhone) {
		this.lblGroomPhone = lblGroomPhone;
	}

	/**
	 * @return the lblAddress
	 */
	public JLabel getLblAddress() {
		return lblAddress;
	}

	/**
	 * @param lblAddress the lblAddress to set
	 */
	public void setLblAddress(JLabel lblAddress) {
		this.lblAddress = lblAddress;
	}

	/**
	 * @return the gPonetextField
	 */
	public JTextField getgPonetextField() {
		return gPonetextField;
	}

	/**
	 * @param gPonetextField the gPonetextField to set
	 */
	public void setgPonetextField(JTextField gPonetextField) {
		this.gPonetextField = gPonetextField;
	}

	/**
	 * @return the gFnameComboBox
	 */
	public JTextField getgFnameComboBox() {
		return gFnameComboBox;
	}

	/**
	 * @param gFnameComboBox the gFnameComboBox to set
	 */
	public void setgFnameComboBox(JTextField gFnameComboBox) {
		this.gFnameComboBox = gFnameComboBox;
	}

	/**
	 * @return the gLnameComboBox
	 */
	public JTextField getgLnameComboBox() {
		return gLnameComboBox;
	}

	/**
	 * @param gLnameComboBox the gLnameComboBox to set
	 */
	public void setgLnameComboBox(JTextField gLnameComboBox) {
		this.gLnameComboBox = gLnameComboBox;
	}

	/**
	 * @return the bFnameComboBox
	 */
	public JTextField getbFnameComboBox() {
		return bFnameComboBox;
	}

	/**
	 * @param bFnameComboBox the bFnameComboBox to set
	 */
	public void setbFnameComboBox(JTextField bFnameComboBox) {
		this.bFnameComboBox = bFnameComboBox;
	}

	/**
	 * @return the emailtextField
	 */
	public JTextField getEmailtextField() {
		return EmailtextField;
	}

	/**
	 * @param emailtextField the emailtextField to set
	 */
	public void setEmailtextField(JTextField emailtextField) {
		EmailtextField = emailtextField;
	}

	/**
	 * @return the scrollPane
	 */
	public JScrollPane getScrollPane() {
		return scrollPane;
	}

	/**
	 * @param scrollPane the scrollPane to set
	 */
	public void setScrollPane(JScrollPane scrollPane) {
		this.scrollPane = scrollPane;
	}

	/**
	 * @return the addresstextArea
	 */
	public JTextArea getAddresstextArea() {
		return AddresstextArea;
	}

	/**
	 * @param addresstextArea the addresstextArea to set
	 */
	public void setAddresstextArea(JTextArea addresstextArea) {
		AddresstextArea = addresstextArea;
	}

	/**
	 * @param btnBack the btnBack to set
	 */
	public void setBtnBack(JButton btnBack) {
		this.btnBack = btnBack;
	}

	/**
	 * @param btnChange the btnChange to set
	 */
	public void setBtnChange(JButton btnChange) {
		this.btnChange = btnChange;
	}

	/**
	 * @return the btnBack
	 */
	public JButton getBtnBack() {
		return btnBack;
	}

}

